﻿@model csharp_Movies_315.Models.MovieIndexVm
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h1>
    @Model.Greeting 
</h1>

<table class="table table-striped table-bordered" style="width:100%">
    <thead>
        <tr>
            <th>ID</th>
            <th>TITLE</th>
            <th>RATING</th>
        </tr>
    </thead>
    @foreach (var m in Model.Movies)
    {
        <tr>
            <td>@m.MovieId</td>
            <td>
                @Html.ActionLink(m.Title, "Details", "Movie", new { id = m.MovieId }, new { @class = "" })
            </td>
            @*<td>@m.Title</td>*@
            <td>@m.Rating</td>
        </tr>
    }
</table>